package com.sniff.atp.service.database.impl;

import com.sniff.atp.entity.ExecuteResult;
import com.sniff.atp.manager.ExecuteResultManager;
import com.sniff.atp.service.database.ExecuteResultService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @BelongsProject: sniff-atp
 * @BelongsPackage: com.sniff.atp.service.database.impl
 * @Author: zxy
 * @CreateTime: 2022-11-23 11:23
 * @Description: 执行结果记录
 * @Version: 1.0
 */
@Service
@RequiredArgsConstructor
public class ExecuteResultServiceImpl implements ExecuteResultService{
    private final ExecuteResultManager executeResultManager;

    @Override
    public void addOne(String case_name, Integer total_count, Integer pass_count, Integer fail_count, Integer skip_count, Float pass_rate, Date start_time, Date end_time) {
        ExecuteResult executeResult = new ExecuteResult();
        executeResultManager.saveOne(executeResult);
    }
}
